<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="/common/_container :: htmlhead"></head>
<body>
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>用户管理</h5>
				</div>
				<div class="ibox-content">
					<div class="row row-lg">
						<div class="col-sm-12">
							<div class="row">
								<!-- <div class="col-lg-2 col-sm-3">
									<div class="panel panel-default">
										<div class="panel-heading">科室列表</div>
										<div class="panel-body dept-tree">
											<ul id="deptTree" class="ztree"></ul>
										</div>
									</div>
								</div> -->
								<div class="col-lg-12 col-sm-12">
									<div class="row">
										<div class="col-lg-10 col-sm-9">
											<input type="hidden" id="deptId" />
											<div class="row">											
												<div class="col-lg-4 col-sm-12">												
													<div class="input-group">
													    <div class="input-group-btn">
													        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">用户名称
													        </button>
													    </div>
													    <input type="text" class="form-control" id="name" placeholder="帐号/姓名/手机号" />
													</div>
												</div>
												<div class="col-lg-4 col-sm-6">													
													<div class="input-group">
													    <div class="input-group-btn">
													        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
													                type="button">注册开始日期
													        </button>
													    </div>
													    <input type="text" class="form-control layer-date"
													           onclick="laydate({istime: true, format: 'YYYY-MM-DD hh-mm-ss'})" id="beginTime"/>
													</div>
												</div>
												<div class="col-lg-4 col-sm-6">													
													<div class="input-group">
													    <div class="input-group-btn">
													        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
													                type="button">注册结束日期
													        </button>
													    </div>
													    <input type="text" class="form-control layer-date"
													           onclick="laydate({istime: true, format: 'YYYY-MM-DD hh-mm-ss'})" id="endTime"/>
													</div>
												</div>
											</div>
										</div>
										<div class="col-lg-2 col-sm-3">
											<div class="row">
												<div class="col-lg-12 col-sm-12">
													 <button type="button" class="btn btn-primary" onclick="MgrUser.search()" >
													    <i class="fa fa-search"></i>&nbsp;搜索
													</button>
													<button type="button" class="btn btn-primary button-margin" onclick="MgrUser.resetSearch()" >
													    <i class="fa fa-trash"></i>&nbsp;重置
													</button>													
												</div>
											</div>
										</div>
									</div>
									<div class="hidden-xs" id="managerTableToolbar" role="group">
									
									<shiro:hasPermission name="user_add"> 
										<button type="button" class="btn btn-primary" onclick="MgrUser.openAddMgr()" >
										    <i class="fa fa-plus"></i>&nbsp;添加
										 </button>
									</shiro:hasPermission>
									<shiro:hasPermission name="user_edit">
										<button type="button" class="btn btn-primary button-margin" onclick="MgrUser.openChangeUser()" >
										    <i class="fa fa-edit"></i>&nbsp;修改
										 </button>
									</shiro:hasPermission>
									<shiro:hasPermission name="user_view"> 
										<button type="button" class="btn btn-primary button-margin" onclick="MgrUser.openViewMgr()" >
										    <i class="fa fa-bars"></i>&nbsp;查看详情
										 </button>
									</shiro:hasPermission>
									<shiro:hasPermission name="mgr_delete">
		                                <button type="button" class="btn btn-primary button-margin" onclick="MgrUser.delMgrUser()" >
										    <i class="fa fa-remove"></i>&nbsp;删除
										 </button>  
									</shiro:hasPermission>
									<shiro:hasPermission name="user_reset">	
										<button type="button" class="btn btn-primary button-margin" onclick="MgrUser.resetPwd()" >
										    <i class="fa fa-refresh"></i>&nbsp;重置密码
										 </button>
									</shiro:hasPermission>
									</div>
									
									<table id="managerTable" data-mobile-responsive="true" data-click-to-select="true">
									    <thead>
									        <tr>
									            <th data-field="selectItem" data-checkbox="true"></th>
									        </tr>
									    </thead>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script th:src="@{/static/modular/system/user/user.js}"></script>
</body>
</html>	
